package com.example.databasepj.mapper;

import com.example.databasepj.entity.DishEntity;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface DishMapper {
    List<DishEntity> selectDishByMerchantIdAndSignature(int id);
    List<DishEntity> selectDishByMerchantId(int id);
    DishEntity selectDishByDishId(int id);

    int insertDish(DishEntity dish);

    void updateDish(DishEntity dish);

    void deleteDish(int dishId,int merchantId);


}
